From: Keir Fraser Date: Tue, 21 Oct 2008 13:14:37 +0000 (+0100) Subject: x86: Move some code out of IRQ-disabled section of context switch path. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14066^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=68516139f354f10c8726c0cced46329fb6b0cbf2;p=xen.git x86: Move some code out of IRQ-disabled section of context switch path. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 6e1498a0f1..87a636e529 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -1255,11 +1255,11 @@ void context_switch(struct vcpu *prev, struct vcpu *next) flush_tlb_mask(next->vcpu_dirty_cpumask); } - local_irq_disable(); - if ( is_hvm_vcpu(prev) && !list_empty(&prev->arch.hvm_vcpu.tm_list) ) pt_save_timer(prev); + local_irq_disable(); + set_current(next); if ( (per_cpu(curr_vcpu, cpu) == next) || is_idle_vcpu(next) )